<template>
  <div>
    <h1>您输入的地址有误，请重新检查</h1>
    <router-link :to="'/login?username=jack&pwd=123'" tag="button">登录</router-link>
    <router-link to="/child" tag="button">child</router-link>
    <router-link :to="{
        path:'/father',
        query:{
          username:'jack',
          age:10,
        }
    }">主页</router-link>
  </div>
</template>

<script>
export default {
  data() {
    return {
      
    }
  },
    methods: {
        pageChange(){
            this.$router.push('/login')
        },
        backPage(){
            this.$router.go(-1)
        }
    },
};
</script>

<style>
h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
</style>